home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
TIFF_WIN
/
ADJUST_T.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-30
|
635b
|
18 lines
#include "my color.h"
adjust_TE_rect(a_window) /* This routine is called from the "do mouse" routine,
Here I will re-size the TE destination and view
rectangles after the user has "grown" the window */
CWindowPtr a_window;
{
register TEHandle the_text;
the_text = (TEHandle)((CWindowPeek)a_window)->refCon;
(**the_text).destRect = a_window->portRect;
(**the_text).destRect.right = (**the_text).destRect.right - BAR_WIDTH;
(**the_text).destRect.bottom = (**the_text).destRect.bottom - BAR_WIDTH;
InsetRect(&(**the_text).destRect, 4, 0);
(**the_text).viewRect = (**the_text).destRect;
TECalText(the_text);
}